package com.example.demo.entity.relation;

import javax.persistence.*;
import java.lang.String;

@Entity
@Table(name = "tb_supervisor_bind", indexes = {
        @Index(columnList = "consultant_id"),
        @Index(columnList = "supervisor_id"),
        @Index(columnList = "consultant_id, supervisor_id")
})
public class SupervisorBind {
    @Id
    @Column(name = "id", updatable = false, nullable = false)
    private String id;

    @Column(name = "consultant_id", nullable = false)
    private String consultantId;

    @Column(name = "supervisor_id", nullable = false)
    private String supervisorId;

    @Column(name = "is_valid", nullable = false)
    private String isValid;

    @Column(name = "start_time", updatable = false)
    private String startTime;

    @Column(name = "end_time", updatable = false)
    private String endTime;

    public SupervisorBind() {
    }

    public SupervisorBind(String id, String consultantId, String supervisorId, String isValid, String startTime, String endTime) {
        this.id = id;
        this.consultantId = consultantId;
        this.supervisorId = supervisorId;
        this.isValid = isValid;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getConsultantId() {
        return consultantId;
    }

    public void setConsultantId(String consultantId) {
        this.consultantId = consultantId;
    }

    public String getSupervisorId() {
        return supervisorId;
    }

    public void setSupervisorId(String supervisorId) {
        this.supervisorId = supervisorId;
    }

    public String getValid() {
        return isValid;
    }

    public void setValid(String valid) {
        isValid = valid;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "SupervisorBind{" +
                "id=" + id +
                ", consultantId=" + consultantId +
                ", supervisorId=" + supervisorId +
                ", isValid=" + isValid +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
